#import "HelloWorldApp.h"
#import <UIKit/UIAlertSheet.h>
#import "MainView.h"

@implementation HelloWorldApp


- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {

window = [ [ UIWindow alloc ] initWithContentRect:
        [ UIHardware fullScreenApplicationContentRect ]
    ];

CGRect windowRect = [ UIHardware fullScreenApplicationContentRect ];
    windowRect.origin.x = windowRect.origin.y = 0.0f;
    
mainView = [ [ MainView alloc ] initWithFrame: windowRect ];

    [ window setContentView: mainView ];
    [ window orderFront: self ];
    [ window makeKey: self ];
    [ window _setHidden: NO ];


 feedMeSheet = [ [ UIAlertSheet alloc ] initWithFrame:
                CGRectMake(0, 240, 320, 240) ];

            [ feedMeSheet setTitle:@"Welcome to Life!" ];
            [ feedMeSheet setBodyText: [ NSString stringWithFormat:@"Hello World!" ] ];
            [ feedMeSheet addButtonWithTitle:@"OK" ];
            [ feedMeSheet setDelegate: self ];
            [ feedMeSheet presentSheetInView: mainView ];



}

@end
